package com.renge.ucenterservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.renge.ucenterservice.entity.UcenterMember;
import com.renge.ucenterservice.entity.vo.LoginVo;
import com.renge.ucenterservice.entity.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-06-20
 */
public interface UcenterMemberService extends IService<UcenterMember> {
    //登录返回token
    String loginToToken(LoginVo loginVo);
    //注册
    boolean saveRegister(RegisterVo registerVo);
    //获得验证码
    String phoneByCode(String number);

    UcenterMember getUserByToken(HttpServletRequest request);
    //统计每日注册人数
    Integer checkDayByCode(String day);
}
